package com.tank.demo.entry.explode;

import com.tank.demo.abstractFactory.BaseExplode;
import com.tank.demo.facadeAndMediator.GameModel;
import com.tank.demo.frame.TankFrame;
import com.tank.demo.utils.ResourceMgr;
import lombok.*;

import java.awt.*;
//@Data
//@NoArgsConstructor
//@AllArgsConstructor
//@ToString
@Setter
@Getter
public class RetroExplode extends BaseExplode {

    public RetroExplode(int x, int y) {
        super(x, y);
    }


    public void paint(Graphics g) {
        for (int i =0;i<15;i++){
            g.drawImage(ResourceMgr.blast[i],x,y,null);
        }
        GameModel.getInstance().remove(this);
    }
}
